home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 408_01 / makefile < prev    next >
Makefile  |  1993-08-22  |  3KB  |  102 lines

  1. # Makefile for SNews ver. 1.91
  2.  
  3. .AUTODEPEND
  4.  
  5. #============================================================================
  6. #  If BCOS2 is defined, compile with Borland C++ for OS/2
  7. #============================================================================
  8.  
  9. !if $d(BCOS2)
  10.  
  11. CC      = bcc
  12. TLINK   = tlink /Toe /ap
  13. INCPATH = c:\bcos2\include
  14. LIBPATH = c:\bcos2\lib
  15. STARTUP = c02
  16. RTLLIB  = c2i os2
  17.  
  18. #============================================================================
  19. #  Else, if BCDOS is defined, compile with Borland C++ for DOS
  20. #============================================================================
  21.  
  22. !elif $d(BCDOS)
  23.  
  24. CC      = bcc -mc
  25. TLINK   = tlink
  26. INCPATH = c:\bc\include
  27. LIBPATH = c:\bc\lib
  28. STARTUP = c0c
  29. RTLLIB  = cc
  30.  
  31. #============================================================================
  32. #  Else, compile with Turbo C++ for DOS
  33. #============================================================================
  34.  
  35. !else
  36.  
  37. CC      = tcc -mc
  38. TLINK   = tlink
  39. INCPATH = c:\tc\include
  40. LIBPATH = c:\tc\lib
  41. STARTUP = c0c
  42. RTLLIB  = cc
  43.  
  44. !endif
  45.  
  46. #============================================================================
  47. #  Define implicit rules
  48. #============================================================================
  49.  
  50. .c.obj:
  51.   $(CC) -c -I$(INCPATH) -O -v -w {$< }
  52.  
  53. #============================================================================
  54. #  Define explicit rules
  55. #============================================================================
  56.  
  57. all: addgroup.exe expire.exe rmgroup.exe snews.exe unbatch.exe
  58.  
  59. addgroup.exe: addgroup.obj active.obj
  60.   $(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
  61.  
  62. expire.exe: expire.obj active.obj amatch.obj
  63.   $(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
  64.  
  65. rmgroup.exe: rmgroup.obj active.obj
  66.   $(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
  67.  
  68. snews.exe: snews.obj active.obj article.obj getopt.obj history.obj pccharst.obj post.obj
  69.   $(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
  70.  
  71. unbatch.exe: unbatch.obj active.obj history.obj
  72.   $(TLINK) /c /x /L$(LIBPATH) $(STARTUP) $**, $*,, $(RTLLIB)
  73.  
  74. #============================================================================
  75. #  Define individual file dependencies
  76. #============================================================================
  77.  
  78. addgroup.obj:   makefile addgroup.c
  79.  
  80. expire.obj:     makefile expire.c
  81.  
  82. rmgroup.obj:    makefile rmgroup.c
  83.  
  84. snews.obj:      makefile snews.c
  85.  
  86. unbatch.obj:    makefile unbatch.c
  87.  
  88. active.obj:     makefile active.c
  89.  
  90. amatch.obj:     makefile amatch.c
  91.  
  92. article.obj:    makefile article.c
  93.  
  94. getopt.obj:     makefile getopt.c
  95.  
  96. history.obj:    makefile history.c
  97.  
  98. pccharst.obj:   makefile pccharst.c
  99.  
  100. post.obj:       makefile post.c
  101.  
  102.